<template>
  <div class="body">
    <div class="top">
      <h2>{{ name }}</h2>
      <i class="iconfont icon-cuo"></i>
    </div>
    <div class="bottom">
      <span class="text" v-for="(v, i) in arr" :key="i">{{ v }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
    },
    arr: {
      type: Array,
    },
  },
};
</script>

<style scoped>
.body {
  width: 100%;
  min-height: 0.9rem;
  padding: 0 0.1rem 0.2rem;
}
.top {
  height: 0.3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.16rem;
}
h2 {
  font-weight: 700;
}
i {
  font-size: 0.2rem;
  color: rgb(143, 142, 142);
}
.bottom {
  min-height: 0.3rem;
  display: flex;
  justify-content: flex-start;
  font-size: 0.12rem;
  flex-wrap: wrap;
}
.text {
  height: 0.32rem;
  background-color: rgb(224, 224, 224);
  color: rgb(99, 98, 98);
  text-align: center;
  line-height: 0.32rem;
  margin: 0.1rem;
  padding: 0 0.1rem;
  border-radius: 0.3rem;
}
</style>